// Copyright 2024 Administrator
// 
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
//     http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import { IsOptional } from "class-validator";
import { Category } from "../entities/category.entity";

export class CategoryDto {

    //种类名称
    categoryName: string;

    //父类别ID
    parentId: number;

    //子类
    subCate: CategoryDto[];

    //图标
    icon: string;

    //顺序
    sort: number;

    //总数
    count?: number;

}


export class SearchCategoryDto extends Category {
    //当前用户是否关注
    isFavorite: string //0,
    //被关注的个数
    favoriteCount: number//471983
    //专辑总数
    albumTotal: number//471983
    //热门单曲总数
    trackTotal: number
    //MV总数
    videoTotal: number
    //头像
    pic: string
    //人物画廊
    pictorialList: string[]
}


export class CategoryPageQuery {

    //categoryName
    @IsOptional()
    keywords: string;

}